package com.cn.lf.wx.dacs.bussiness.author.dao;

import com.cn.lf.wx.dacs.bussiness.author.entity.AuthMenu;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 菜单列表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2022-03-01
 */
@Mapper
public interface AuthMenuMapper extends BaseMapper<AuthMenu> {

	@Select("select m.* from auth_menu m,auth_role_menu r where m.mid = r.menu_id and r.role_id = #{role} order by m.sort desc")
    List<AuthMenu> menusForRole(String role);
}
